package com.funkids.prxis.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.funkids.common.dto.GoodsDto;
import com.funkids.prxis.entity.SysGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.prepost.PreAuthorize;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author funkids
 * @since 2023-03-22
 */

@Mapper
public interface SysGoodsMapper extends BaseMapper<SysGoods> {

    Page<GoodsDto> listByName(@Param("page") Page<GoodsDto> page, @Param("name") String name);
}
